package com.mySpringMvc.web.servlet;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * @program: mySSM
 * @description: 拦截器类
 * @author:wjp
 * @create: 2025-02-13 18:20
 **/
public interface HandlerInterceptor {
    default boolean preHandle(HttpServletRequest request, HttpServletResponse response,
                      Object handler) throws Exception{
        return true;
    }
    default void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
                    ModalAndView modalAndView) throws Exception{

    }
    default void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,
                         ModalAndView modalAndView) throws Exception{

    }
}
